# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-flashback
pkgver=3.36.3
pkgrel=0
pkgdesc="GNOME Flashback is a GNOME session providing a similiar experience to GNOME 2.x"
url="https://wiki.gnome.org/Projects/GnomeFlashback"
arch="all !s390x !ppc64le !armhf !mips !mips64" # missing dep: gnome-panel on s390x/ppc64le/armhf
license="GPL-2.0-or-later"
depends="gsettings-desktop-schemas xkeyboard-config"
makedepends="gtk+3.0-dev gnome-desktop-dev gnome-panel-dev libcanberra-dev
	glib-dev gsettings-desktop-schemas-dev polkit-dev ibus-dev upower-dev
	libxrandr-dev libxxf86vm-dev libx11-dev libxcb-dev elogind-dev libxext-dev
	libxkbfile-dev gdm-dev libxfixes-dev pulseaudio-dev alsa-lib-dev gnome-bluetooth-dev
	linux-pam-dev"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-flashback/${pkgver%.*}/gnome-flashback-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b0217ab72538983150f37c12ba0e78da0d9aa7a74075af0bd71390be9cc0686480dc831696f3febf4fed0bb1332547a494e5efb33c86b6879c46bc0443c53138  gnome-flashback-3.36.3.tar.xz"
